import {request} from './axiosFun'

/**
 * 系统设置
 **/
// 系统设置-用户管理-获取用户列表

export const users = (params) => {

  return request("get", "/users?" + "pageNum=" + params.pageNum + "&pageSize=" + params.pageSize + "&pageCount=" + params.pageCount + "&serchUser=" + JSON.stringify(params.serchUser))
};

//系统设置-项目管理
export const listPage = (params) => {
  return request("get", "/projects/listPage?" + "pageNum=" + params.pageNum + "&pageSize=" + params.pageSize + "&pageCount=" + params.pageCount + "&serchData=" + JSON.stringify(params.serchData))
};

//新增/编辑项目接口
export const addProject = (parmas) => {
  return request('post', "/projects/add", parmas)
}

//删除项目
export const removeProject = (params) => {
  return request('post', "/projects/remove", params)
};

//查看定时任务列表
export const listJob = (params) => {
  return request('get', "/job/list?" + "pageNum=" + params.pageNum + "&pageSize=" + params.pageSize + "&pageCount=" + params.pageCount + "&serchData=" + JSON.stringify(params.serchData))
};
